<extend name="Public/base"/>

<block name="body">
  <div class="main-title">
    <h2>查看相册列表</h2>
  </div>
    <div class="well">
        <p><strong>提示：</strong> 请为建立的相册设置分类，前台展示相册会以分类来做列表。 </p>
        <p>     关键词将作为搜索的重要依据，设置好相应的关键词将会提升搜索引擎收录和微信公众号关键词获取。 </p>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('index')}" >全部</a>
            <a class="btn" href="{:U('index',array('display'=>1))}" >公开相册</a>
            <a class="btn" href="{:U('index',array('display'=>0))}" >私有相册</a>
            <a class="btn" href="{:U('index',array('display'=>2))}" >微信相册</a>
            <a class="btn btn-primary" href="{:U('create')}" >新增相册</a>
        </div>
        <!-- 高级搜索 -->
        <include file="serch" />

        </div>

    <!-- 数据表格 -->
            <div id="albumList cf">
                    <volist name="_list" id="vo">

                            <div data-id="album{$vo.id}" class="Board">
                                <div class="board-img">
                                    <a href="{:U('detail',array('id'=>$vo['id']))}" target="_self" >
                                        <div class="large">
                                            <img src="{$vo['img'][0]|default='__PUBLIC__/Home/images/no_pic_icon.gif'}" >
                                        </div>
                                        <div class="small">
                                            <img src="{$vo['img'][1]|default='__PUBLIC__/Home/images/no_pic_icon.gif'}" >
                                            <img src="{$vo['img'][2]|default='__PUBLIC__/Home/images/no_pic_icon.gif'}" >
                                            <img src="{$vo['img'][3]|default='__PUBLIC__/Home/images/no_pic_icon.gif'}" >
                                        </div>
                                    </a>
                                </div>
                                <div class="board-text">
                                    <a href="{:U('detail',array('id'=>$vo['id']))}" target="_self" ><h3>{$vo.title}</h3></a>
                                    <div class="board-meta">
                                        <p>
                                            <span>图片：</span><span>{$vo.count|default='0'}</span>
                                            <span>分类：</span><span>{$vo.category}</span>
                                        </p>
                                        <p>
                                            <span>关键字：</span><span>{$vo.keywords}</span>
                                        </p>
                                        <notequal name="vo['id']" value="1">
                                        <p class="operation-btn-box">
                                            <a href="{:U('setStatus?ids='.$vo['id'].'&status='.abs(1-$vo['status']))}" class="btn btn-onechat-default btn-onechat-small ajax-get">{$vo.status|show_status_op}</a>
                                            <a data-id="{$vo.id}" class="setCover btn btn-onechat-default btn-onechat-small" href="{:U('edit?id='.$vo['id'])}">编辑</a>
                                            <a data-id="{$vo.id}" class="deletePicture btn btn-onechat-default btn-onechat-small confirm ajax-get" href="{:U('remove',array('id'=>$vo['id']))}">删除</a>
                                        </p>
                                        </notequal>
                                    </div>
                                </div>

                            </div>
                    </volist>
            </div>


  <!-- 分页 -->
    <div class="page cf">
        {$_page}
    </div>
</block>

<!-- 加载底部JS -->
<block name="script">
<include file="Public/footjs" />
</block>
